package testGuava.example.testSpring;

import org.junit.Test;
import org.springframework.beans.BeanUtils;

/**
 * @ClassName : org.example.testSpring.BeanUtilTest
 * @Description : 类描述
 * Created by cyd on 2021-09-15 16:44:46
 */
public class BeanUtilTest {
    @Test
    public void test() {
        Person person = new Person();
        person.setName("mike");
        person.setAge(10);

        Person target = new Person();

        BeanUtils.copyProperties(person, target);
        System.out.println(target);
    }
}
